let dataDay = [];
for (let i = 0; i < 24; i++) {
  dataDay.push(i + "")
}
let dataMonth = [];
var nowDate = new Date();
var startOfMonth = nowDate.getDate()
for (let i = 1; i <= startOfMonth; i++) {
  dataMonth.push(i )
}

export let optionDay = {
  title: {
    text: "今日填表人数统计",
    textStyle: {
      fontSize: "14"
    },
    left: "33%",
    top: "5%",
  },
  legend: {},
  grid: {
    left: "10%",
    right: "25%"
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  xAxis: {
    name: "时间/点",
    type: 'category',
    data: dataDay,
    axisTick: {
      show: false,
    }

  },
  yAxis: {
    name: "人数",
    type: 'value'
  },
  series: [{
    data: new Array(24).fill(0),
    type: 'line',
    smooth: true,
  }]
};


export let optionMonth = {
  title: {
    text: "本月填表人数统计",
    textStyle: {
      fontSize: "14"
    },
    left: "33%",
    top: "5%",
  },
  legend: {},
  grid: {
    left: "10%",
    right: "25%"
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  xAxis: {
    name: "日期/号",
    type: 'category',
    data: dataMonth,
    axisTick: {
      show: false,
    }

  },
  yAxis: {
    name: "人数",
    type: 'value'
  },
  series: [{
    data: new Array(32).fill(0),
    type: 'line',
    smooth: true,
  }]
};